package cn.iocoder.yudao.module.nginxui.controller.admin.httpserver.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - Nginx HTTP下的Server块配置新增/修改 Request VO")
@Data
public class HttpServerSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22252")
    private Long id;

    @Schema(description = "HTTP配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1584")
    @NotNull(message = "HTTP配置ID不能为空")
    private Long httpId;

    @Schema(description = "监听端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "监听端口不能为空")
    private String listen;

    @Schema(description = "服务器名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "服务器名不能为空")
    private String serverName;

    @Schema(description = "网站根目录")
    private String root;

    @Schema(description = "默认索引文件")
    private String index;

    @Schema(description = "SSL证书路径")
    private String sslCertificate;

    @Schema(description = "SSL私钥路径")
    private String sslCertificateKey;

    @Schema(description = "额外自定义配置")
    private String extraServerConfig;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序号不能为空")
    private Integer sort;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

}